How to get the Salesforce Account fields using aws lambda?

0

Hi, I am trying to get the Salesforce Accounts Fields from aws lambda function, it does return the Salesforce Contact Fields like Id, Name, Email and other Fields but giving me the error

"errorMessage": "INVALID_FIELD: No such column 'City_CB__c' on entity 'Contact'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
  "errorType": "Exception" 

when tried to get the Accounts fields.

I am following this documentation https://connect-blogs.s3.amazonaws.com/Amazon+Connect+Salesforce+CTI+Adapter/Amazon+Connect+CTI+Adapter+for+Salesforce+Lightning+-+Setup+and+Installation+Guide.pdf#page=68&zoom=100,121,298

And my event format is:

{
   "Details":{
      "Parameters":{
          "name":"Accounts",
          "sf_operation":"phoneLookup",
          "sf_phone":"[PhoneNumber]",
          "sf_fields":"Id, Name, Email, City_CB__c"
      }
   }
}

It returns the Contact fields but not the Account fields.

1개 답변
0

After a lot of brainstorming i got to know you just have to add account. in start of the fields to get the Account Fields.

{
   "Details":{
      "Parameters":{
          "sf_operation":"phoneLookup",
          "sf_phone":"[PhoneNumber]",
          "sf_fields":"account.Id, account.Name, account.Email, account.City_CB__c"
      }
   }
}
답변함 2년 전
profile pictureAWS
전문가
검토됨 일 년 전

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

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

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

관련 콘텐츠