Aws S3 bucket opportunity-inbound

0

Hi, i have uploaded a json file in opportunity-inbound folder with all required data which is enough to create a opportunity. Now , i have a query that how s3 read the opportunity-inbound folder and process the data in the file and create a opportunity and where the opportunity is created?

profile picture
Elango
已提問 2 個月前檢視次數 160 次
1 個回答
2
已接受的答案

You need to create a Data event on the S3 bucket to trigger your lambda function. Parse the Event to read the bucket and key information in the Lambda Function.. https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventNotifications.html

ie

import urllib.parse

bucket = event['Records'][0]['s3']['bucket']['name']
key = urllib.parse.unquote_plus(event['Records'][0]['s3']['object']['key'], encoding='utf-8')
filename_json = key.split("-")

Your Lambda function can then create the appropiate opportunity in your partner portal.

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前
profile picture
專家
已審閱 2 個月前
  • Thank you sir, Could you please give some reference for the function to create opportunity

  • Afraid I do not have any reference for creating Partner oppertunties in code.. Its not something I have used. We use the partner portal currently

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南