• Adam Zuckerman 3
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 7
    Replies
Hey All Experts,

Looking to create a onepage Lightning component or Page. I am a newbie to SF
Would prefer if its doable via App Builder or declaratively.

1.Objective is to fetch existing Lead record (based on name,mobile)
and populate fields

2.If record doesnot exist it should give an option to create and 
save new lead record

Just want to keep it simple and stupid for the first version as 
long as basic functionality works.
Any clues y'all might be able to provide. Thank you so much in advance.

Regards,
Sunny
Hello,

I'm trying to send a simple HTTP Post from Salesforce to a PowerAutomate Flow that is setup. I think I'm struggling with authenticating but the JSON being passed is OK. Not really sure as I'm new to APEX. The PowerAutomate developer provided a long URL for Azure which had some authentication variables such as sig. I remove those from the endpoint URL and put them into the body along with the expect data which is the OpportunityID. 

I also add the Azure endpoint URL to the Remote Site settings in Salesforce. Do I need to add named credentials as well? if so, what type? 

Here's the HTTP Post APEX. I when I execute which I've been doing from the Execute Anonymous Window, I get a 400 error.
 
Http http = new Http();
HttpRequest request = new HttpRequest();
request.setEndpoint('https://prod-999.westus.logic.azure.com:443/workflows/9999999999/triggers/manual/paths/invoke');
request.setMethod('POST');
request.setHeader('Content-Type', 'application/json;charset=UTF-8');
// Set the body as a JSON object
request.setBody('{"api-version":"2016-06-01","sp":"/triggers/manual/run", "sv":"1.0","sig":"ABCDEFGHIJKLMNOP","OpportunityID":"0062E00001Oa8GcQAJ"}');
HttpResponse response = http.send(request);
// Parse the JSON response
if(response.getStatusCode() != 201) {
    System.debug('The status code returned was not expected: ' + response.getStatusCode() + ' ' + response.getStatus());
} else {
    System.debug(response.getBody());
}

Here's the expected PowerAutomate schema which also provided the endpoint URL and URL parameters as I noted above. 

User-added image
Hi All,
I want to add a webhook for capturing the case details from salesforce.
I tried using a remote site setting but I am not getting any event after creating a case.

Also, i tried to add a webhook using a salesforce webhook(https://salesforce-webhook-creator.herokuapp.com/app#) creator but I am not getting any event from the service cloud. 

I am attaching the screenshot for reference Kindly help me with this issue.
User-added image
Thanks.

 
Hi Friends, I am new to integration and my task is
How to create webhooks in salesforce ?
thanks in advance.
Hi,
I'm integrating salesforce CRM for our customers. As per customer requirment I would like to know wether any webhook available to get the contacts or leads when they are edited. 
I have aprocess builder which is supposed to do 2 actions, an email alert and an api call to Gravity forms to post some data into Gravity Forms DB.Is it possible to make the api call from the action in process builder directly? So basically without involving any Apex class? I guess not but wanted to check. If it was aworkflow then in action you can select 'New Outbound message' which will give you a field to specify endpoint url? Is the similar thing possible in process builder?

I already have workflow rule for email alert, but since I also need to make this api call at the same instance I thought of using process builder. Is there any other better solution?
Thanks in advance.