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
asked a month ago149 views
1 Answer
2
Accepted Answer

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
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month ago
  • 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions