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 个月前159 查看次数
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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则