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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠