• Juan J Romero
  • NEWBIE
  • 25 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello team,

I’m facing some issues trying to call Marketing Cloud REST API,  from SF Apex code, using Named Credentials, Auth Providers and Custom Metadata Types.
I have done the connection between the two systems, but making a request to obtain the access token every time I need to call the API or storing it in a custom setting, for example, to reuse it in future API calls.

I want to do it in a better way using Named Credentials, Auth Providers and Custom Metadata Types but I’m struggling with it. When my class extending Auth.AuthProviderPluginClass runs, it calls the method initiate but the method handleCallback is never called.

My questions are:
- Is it possible to do this connection between SF and Marketing Cloud REST API using these features? (Named Credentials, Auth Providers and Custom Metadata Types).
- If so, do you have any documentation I can read with an example of how to do it? I have read the SF help documentation and I couldn’t find anything.

Thanks in advance!!

Regards,
Hello team,

I’m facing some issues trying to call Marketing Cloud REST API,  from SF Apex code, using Named Credentials, Auth Providers and Custom Metadata Types.
I have done the connection between the two systems, but making a request to obtain the access token every time I need to call the API or storing it in a custom setting, for example, to reuse it in future API calls.

I want to do it in a better way using Named Credentials, Auth Providers and Custom Metadata Types but I’m struggling with it. When my class extending Auth.AuthProviderPluginClass runs, it calls the method initiate but the method handleCallback is never called.

My questions are:
- Is it possible to do this connection between SF and Marketing Cloud REST API using these features? (Named Credentials, Auth Providers and Custom Metadata Types).
- If so, do you have any documentation I can read with an example of how to do it? I have read the SF help documentation and I couldn’t find anything.

Thanks in advance!!

Regards,
Error says Challenge not yet complete... here's what's wrong: 
You do not have the correct account fields in the 'New Detailed Account' publisher action

Trailhead Challenge says
Add the Account Name, Type, Rating and Fax fields to the compact layout.

What am I doing wrong?

User-added image
Thanks!
Aron