Skip to main content

#Httpcallout0 人がディスカッション中

Hi All,

I had created a legacy named Credential with 

Identity Type = Named Principal

Authentication Protocol = OAuth 2.0 and when I go to a profile which is having salesforce platform license I'm not able to see the named credential in the Named Credential Access setting on the profile.

Is there anything im missing or it has deprecated?

also as I have used I have given access to

Enable User External Credentials in "Object Settings".

But I'm not able to add External Credentials to "External Credential Principal Access"as i could see none.

is there any way I could add named credential access into the profile? #Integration #India #Ask An Expert #Httpcallout #Named Credentials 

2 件の回答
  1. 2023年11月29日 12:06

    Thanks for the reply @Kalpesh Ketkar

    I went through the above the steps but still not able to make callout for the profiles other than system admin

0/9000

The response I get from a HTTP callout I want to use from Flow looks like this JSON:

[{"attributes":{"key1":numvalue,"key2":"txtvalue","key3":"txtvalue"}}]

Because the values I want to use are enumerated under "attributes", currently the new "Transform" Flow element won't let you map these values directly to a record's fields:  

When mapping a field in a source collection to a field in the target collection, both collections must be at the same hierarchical level in their respective resource. For example, the 2XX collection and the Order collection aren’t within any other collection. Because they’re both the top collections in their respective resources, you can map fields between them.

How to map HTTP response from hierarchy?

 

Is there any sensible workaround to adjust the returned info so that it can be mapped to record fields with the "Transform" element? Or is Flow just not capable of that kind of thing yet, and I should just manually parse the JSON string myself? (Yes, there are USF tools that'll do that, it would be nice if I could just get past this one roadblock with native features, though.)

 

#Flow #Httpcallout #Integration

2 件の回答
  1. 2023年10月10日 1:14

    Hi Peter,

    i see that the data you are receiving is an array of objects, which contains attributes as object fields. So instead of using Transform which i think is in BETA currently, why not use a loop element to loop through the collection and use an assignment element to assign to the respective object? 

0/9000

Hi Guys

 I built a flow to get data from an external system to salesforce using the HTTP Callout method. I am receiving an error message HTTP response Code : 302

FLow Details:

Scheduled Trigger Flow

I am using a oAuth 2.0 Named Credential (Legacy) with Auth provider (Provide type: Open ID Connect).

In Named Credentials section : Authentication Status | Pending. Its been on the same status

Need help to resolve this issue.

#Flow #Salesforce Flow #Httpcallout #Flownatics

 

Thanks

Jey

5 件の回答
  1. Ajaypreet Singh Saini (Grantbook) Forum Ambassador
    2023年11月9日 12:38
    I wonder if you can share screenshot of how you configured your named credential and also want to see your endpoint url
0/9000

I am trying to make an HTTP call-out from a flow (triggered when an address is entered on an Account a certain fields are filled in) to Google maps API. 

 

We have it set up to only require an API key. No named credentials are needed for the set up.

When the API is set up without restrictions, it works fine. However, if the 

client wishes to restrict the API to certain URLs. 

 

When we try to restrict the API to different variations on 

client.my.salesforce.com

 with or without https:// and/or an asterisk as a wildcard at the end or towards the front.

 

Does anyone know the url the API request would be coming from?

 

Thanks

#Flow #HTTPCalloutFramework #Httpcallout #Developers #Salesforce Developers

3 件の回答
  1. Jonathan Fox (Cooper Parry) Forum Ambassador
    2023年10月16日 5:49
    Without testing (I'm answering on mobile) I don't know but you could make a callout from the flow to something such as a webhook bin site or a mock Postman server - that'll tell you where I came from
0/9000

Hello,

 

I am using Open API 3.0 to connect two Salesforce orgs. I have a scenario where,

 

Let's say

  1. Source Org Account Name : Salesforce, USA
  2. Target Org Account Name: Salesforce, USA

There is a duplicate rule in Target Org which doesn't allow us to create the accounts with the same names.

 

So, when I tried to push the source org record to Target org and I got the error as ( 400 response code)

Result: [{

"message_set" : true,

"message" : "Please choose one of these records instead.",

"errorCode_set" : true,

"errorCode" : "DUPLICATES_DETECTED"

}]

My questions are,

  1. Is there anyway to get extract message only from the response?
  2. Is there anyway to get the duplicate record Id from the Target org which I can update the Id back to one of the Account's fields in source org?

The response result doesn't return any details apart form the above message so that makes hard for me to refer the target org accountId.

Thank you in advance.

#HTTP POST Method #Httpcallout #Flow

2 件の回答
  1. 2023年8月14日 19:57

    I was able to capture the message details separately. 

    So, the general Variable/Formula fields won't support to do it. So I created a text template field to capture the data and applied some formula functions to extract the details that I was looking for.

     

    It would be better if Salesforce allows us to store these details in a formula field directly and use it for screen flows.

     

    Any idea on point 2?

0/9000

No more manually downloading and creating Dated Exchange Rates so your opportunites show the correct converted currency rates.

I provide step-by-step instructions on how to signup for a free API account to get the exchange rates, configure the flow and schedule it.

But you can't schedule HTTP Callouts in scheduled flows? Well let's just say without a bit of magic from unofficialsf dot com you can't. So I sprinkled that in too.

Need help to build this in your org? There's a link at the end of the article where you can schedule an appointment with me to do it for you.

https://blog.certifycrm.com/automate-exchange-rates-with-http-callout/

#salesforce #gowiththeflow #httpcallout

6 件の回答
  1. 2023年2月1日 18:18

    Thanks, I passed on that feedback to the Named Credentials product owner. The intention in the future is to move the Named Credentials setup to a wizard-like experience, but timing is to be determined. 

     

    In the meanwhile, post any questions you have about using the new named credentials with HTTP Callout to this group.

0/9000

Looking for an easy way to bring external data into Flow?

An open Beta of the no-code HTTP Callout is coming in Spring ‘23, empowering you to integrate Flow with external systems faster than ever before. HTTP Callout reduces your reliance on a developer and enables you to build the action right within Flow Builder.

 

Join the @Flow HTTP Callout group to:

  • get resources for getting started
  • share feedback with the product team
  • learn from the community

We can’t wait to hear about your first use cases for automating processes with external data!

 

Looking for an easy way to bring external data into Flow?

#httpcallout

0/9000