Hi, sorry about the rookie question. When I subscribe to a topic I get an SObject id, how can I use this id to update back in salesforce ? I found some examples but none of them seem to work for me. For example I get notified about an Event and I have the id, then I want to update a text field called FromMule in Event object, shouldn't be something like this?
<sfdc:update-single config-ref="Salesforce__Basic_Authentication" type="Event__c" doc:name="Salesforce">
<sfdc:object key="Id" value-ref="# [id]"/>
<sfdc:object key="FromMule__c" value-ref="Updated"/>
Thanks,J
To update a record in Salesforce based on id returned from Event follow these steps:
- 1) Store that id in a flow variable.
- 2) Drag new salesforce connector,
mention the SObject ie Event in this
case. Select the operation to be
updated and save it.
- 3) Now drag
dataweave. This weave component
should populate(datasense) all the
fields that are present in Event
object in salesforce.
- 4) Based on
your requirement, mention required
transformations for fields.