Hi,
Hope you are doing great!!
I have a requirement like I want to send a message through the pub/sub connector with the OpportunityId = 00rDJQWX. The value of OpportunityId also changes when we modify an opportunity status in Salesforce.
So, how did we sent this OpportunityId in the PubSubConnectorInputPayload message ?
I am referring to the attachment below.
Thanks
Solved! Go to Solution.
Hi @Amankumawat , Thanks for your question.
You can use the data mapper task to map data from variables to the input variables for the Connector Task. For example, you could create the connectorInputPayload.message attribute with the value of Opportunity ID, or you could create a string like "OpporunityID = 00rDJQWX" and set that to the .message attribute using a concatenate mapping function, etc... Here are some example mapping rules where I'm extracting some data from the Saleforce Trigger, and then setting local variables and also setting a connectorInputPayload.message variable:
In the docs, you can also see a sample of the format used for the message attribute:
https://cloud.google.com/apigee/docs/api-platform/integration/get-started-connectors
{"message": "test message from integration platform"}
.
@Amankumawat wrote:
Hi,
Hope you are doing great!!
I have a requirement like I want to send a message through the pub/sub connector with the OpportunityId = 00rDJQWX. The value of OpportunityId also changes when we modify an opportunity status in Salesforce.
So, how did we sent this OpportunityId in the PubSubConnectorInputPayload message ?I am referring to the attachment below.
Thanks
@Amankumawat wrote:
Hi,
Hope you are doing great!!
I have a requirement like I want to send a message through the pub/sub connector with the OpportunityId = 00rDJQWX. The value of OpportunityId also changes when we modify an opportunity status in Salesforce.
So, how did we sent this OpportunityId in the PubSubConnectorInputPayload message ?I am referring to the attachment below.
Thanks
Hi @Amankumawat , Thanks for your question.
You can use the data mapper task to map data from variables to the input variables for the Connector Task. For example, you could create the connectorInputPayload.message attribute with the value of Opportunity ID, or you could create a string like "OpporunityID = 00rDJQWX" and set that to the .message attribute using a concatenate mapping function, etc... Here are some example mapping rules where I'm extracting some data from the Saleforce Trigger, and then setting local variables and also setting a connectorInputPayload.message variable:
In the docs, you can also see a sample of the format used for the message attribute:
https://cloud.google.com/apigee/docs/api-platform/integration/get-started-connectors
{"message": "test message from integration platform"}
.
@Amankumawat wrote:
Hi,
Hope you are doing great!!
I have a requirement like I want to send a message through the pub/sub connector with the OpportunityId = 00rDJQWX. The value of OpportunityId also changes when we modify an opportunity status in Salesforce.
So, how did we sent this OpportunityId in the PubSubConnectorInputPayload message ?I am referring to the attachment below.
Thanks
@Amankumawat wrote:
Hi,
Hope you are doing great!!
I have a requirement like I want to send a message through the pub/sub connector with the OpportunityId = 00rDJQWX. The value of OpportunityId also changes when we modify an opportunity status in Salesforce.
So, how did we sent this OpportunityId in the PubSubConnectorInputPayload message ?I am referring to the attachment below.
Thanks
Thanks @shaaland
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |