The MDAPI is used in Questionnaires and lookup fields across Litify. Follow this guide to set up or reset MDAPI in both sandbox and production environments. 

To reset or troubleshoot the MDAPI in a sandbox environment, follow all steps in this article. To Reset MDAPI in a production environment, Pre-Setup Steps and Production MDAPI Setup Steps. If you're setting up the MDAPI for the first time, click here to skip ahead to Production Setup

Table of Contents

Important Pre-Setup/Reset Steps:

If you are resetting the MDAPI, or configuring the MDAPI in a sandbox, you must first complete these steps to reconfigure it.

  1. Navigate to Setup > App Manager and delete the MDAPI app.

    rtaImage__20_.gif



  2. Then navigate to Named Credentials and delete the MDAPI named credentials.


    rtaImage__21_.gif

  3. Finally, navigate to Auth Providers and delete the MDAPI auth provider.

    rtaImage__22_.gif

NOTE:

If you are troubleshooting or resetting the MDAPI, click here to skip to Production Setup Steps

 

Sandbox MDAPI Setup Steps

1. Log in to your sandbox.

2. In Setup, navigate to App Manager > LitifyMDAPI > View

3. Copy the Consumer Key and Consumer Secret


md1.png



4. In Setup, navigate to Auth. Providers > LitifyMDAPI and paste the Consumer Key and Consumer Secret.  


md2.png



5. In Setup, navigate to My Domain and copy the domain name in “Your domain name is” section.

mdapi_update_1.gif



6. Navigate to Named Credentials > LitifyMDAPI > Edit, then change the URL to the mydomain URL you copied in the previous step. Make sure to include “https://” at the beginning. Click Save

MDAPI_update_2.gif

7. Navigate back to App Manager > LitifyMDAPI > View. Click Edit and change the Callback URL to match the mydomain from the previous step. 


Important note: make sure this begins with “https://” and ends with “/services/authcallback/LitifyMDAPI” -- you are only editing the URL between these two. 



md5.png



8. You're ready to begin using MDAPI in your new sandbox.

Production MDAPI Setup Steps

 


1. Click 'Configure MDAPI' from the App Launcher.

You will be directed to this page:


rtaImage__65_.png



2. Hit the Configure button all the way to the right of the first step. This automatically completes the first step:

rtaImage__66_.png



3. For step 2, you are prompted to refer to this setup instruction.

4. Go to Setup > App Manager and scroll to the App named LitifyMDAPI. On the right-hand side is a dropdown button. Click it and then click the View link.


rtaImage__23_.gif



5. In the area labeled API (Enable OAuth Settings) on the top line will be a Consumer Key and Consumer Secret (you need to click the link by Consumer Secret to see the actual value). Copy both values to use in the next step.


rtaImage__67_.png



6. Go to Setup > Auth. Providers and scroll to the Auth. Provider named LitifyMDAPI. Click Edit.

rtaImage__68_.png

7. Enter the Consumer Key and Consumer Secret in the corresponding fields.


rtaImage__69_.png


8. Return to the 'Configure MDAPI' page and it will complete the rest of the automated setup. At that point there's one more manual step and again it says to refer to these instructions.


rtaImage__70_.png

9.  Go to Setup > Named Credentials and locate LitifyMDAPI and click the Edit link.

10. Ensure that the Start Authentication Flow on Save checkbox is checked, which it should be by default.


rtaImage__71_.png



11. Click Save.

Important Note: If you get an error stating this or something similar (error=invalid_client_id&error_description=client%20identifier%20invalid) after clicking save, you simply have to wait a few minutes for the Auth Provider to complete setup. Wait a few minutes then refresh the page, then click Save again to continue.


12. You will be redirected to the Salesforce login page. Log in using your Litify credentials.

13. upon logging in, you will be asked if you want to Allow Access. Click the blue Allow button.



rtaImage__72_.png


14. Finally, visit 'Configure MDAPI' once more and you will see the setup is complete.

rtaImage__73_.png
 

Was this article helpful?
2 out of 2 found this helpful