Hi,

Wondering if there is a way to re-push already mapped objects without editing and resaving a node. For example, I have a content type and lets say 1000 nodes for that content type and they are all already mapped to an object in Salesforce. I added a new field mapping and would like the value for that new field be pushed to the corresponding records in Salesforce. Wondering if there is a drush command or any other way I can bulk push all 1000 of those already mapped nodes so that the value for the new field gets pushed to Salesforce. I cannot use VBO or edit and re-save them to trigger a push, since there are rules that trigger in my case on node save that I would not want to be triggered in this case.

Thank you.

Comments

Saratt created an issue. See original summary.

aaronbauman’s picture

Status: Active » Fixed

yes, this is available via drush.
see salesforce_push:requeue:

Requeue mapped entities for asynchronous push.

Addresses the frequent need to re-push all entities for a given mapping.
 Given a mapping, re-queue all the mapped objects to the Salesforce push
 queue. The push queue will not be processed by this command, and no data
 will be pushed to salesforce. Run salesforce_push:push-queue to proceess
 the records queued by this command.
 
 NOTE: Existing push queue records will be replaced by this operation.

Examples:
  drush sfpu foo               Requeue all drupal entities mapped objects for mapping "foo".          
  drush sfpu foo --ids=1,2,3,4 Requeue entities for mapping "foo" with ids 1, 2, 3, 4, if they exist. 

Arguments:
  name The Drupal machine name of the mapping for the entities. 

Options:
  --ids[=IDS] If provided, only requeue the entities given by these ids. Comma-delimited. 

Aliases: sfrq, salesforce-push-requeue
saratt’s picture

Thank you Aaron.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.