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
gefragt vor 2 Monaten159 Aufrufe
1 Antwort
2
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
  • 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

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen