Hi,
I'm trying to setup Adobe IO events to post notification on Slack for assets created, deleted and so on. However, OOTB if I do, the payload is not compatible to Slack as it requires to have a mandatory property text for Slack which is not part of Adobe IO event payload.
So, how can I customise the payload to have event posted on Slack?
Best regards,
Himanshu Singhal
토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.
조회 수
답글
좋아요 수
Hi @zeiss_hs,
You cannot directly use a Slack webook with Adobe I/O Events, because of the same constraint you mentioned. You will need a webhook to proxy your event payload to Slack in a compatible format. This can be achieved by a simple Adobe I/O Runtime action (or any other serverless function). Below is a sample repository for inspiration:
https://github.com/hirenoble/webhook_server#update-slack-incoming-webhook
조회 수
답글
좋아요 수
Thank you so much and it works well. I've got a question though....Isn't there anyway to have this modification done in Adobe I/O platform? or we can deploy the project there instead of having maintained it on a separate server?
조회 수
답글
좋아요 수
@zeiss_hs I am not sure if I fully understand your question, but let me take a stab at it.
If you have Adobe I/O Runtime enabled in your org, then you can deploy a Runtime action that essentially does the same modification. You can then use Runtime Action as a Webhook against your events integration and achieve the same goal.
Hope this helps.
조회 수
답글
좋아요 수