EventBridge input transformation between salesforce event to target API?

0

I have created appflow in console.Chose Source- Salesforce event (AccountChangeEvent) & Destination - Amazon EventBridge and created flow.After that in eventbridge created event bus and associated appflow to bus. Activated flow in appflow console. Then created Rule in AWS eventbridge where chose custom API as target. Now i have to do the transformation in rule to pass SF event few data to target API, any help would be appreciated. Thanks.

2 Answers
1

Hi, from what I understand, you are asking how to transform the event once EventBridge received the event. This link discusses the capability: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-transform-target-input.html. There are limitations to this, such as no more than 100 variables can be defined. You may have already reviewed this document. If not I suggest taking a look at this: https://aws.amazon.com/blogs/compute/building-salesforce-integrations-with-amazon-eventbridge/ If you find that the previous suggestions are not workable, then do the transform after event delivery. Have your subscriber/target do the transform. For example, use Lambda or Step Functions as a target, then these services will run the transform and pass the results to the final target, such as another API or database.

AWS
Byron_G
answered 2 years ago
  • Thanks Byron for quick response. I have followed both the links. created flows (Salesforce source event with 7-8 fields target event bridge) ,associated flow with event bus and created rules. In Rule creation steps chose "Event source" as "Other" and "Event Pattern" as "Custom Patterns" and provided sample event pattern. API destination is custom rest API has been used.When i trigger event from salsforce it reached to appflow but could not see it in event bridge and not reaching to target API. any idea why is not reaching to event bridge or target API. Even i could see event in rule monitoring tab.

0

Not sure this issue is still relevant :-). Even i faced similar issue when Salesforce event got triggered by event bus, but the Rule will not match with the pattern and finally your event goes no where. My observation is while giving the Event Pattern on the Event bus Rule and it should be similar to like below. You can still fine tune as per the prefix and other parameters, but first get the event to target and print the event and finally design your event pattern correctly. Event bridge has an option to transform the input or select only few fields coming our way using "Input Transformer" before hitting the target. { "source": [{ "prefix": "aws.partner/salesforce.com" }] }

answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions