- Newest
- Most votes
- Most comments
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.
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" }] }
Relevant content
- asked a year ago
- Accepted Answerasked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months 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.