Setup Connected App
Step 1: Locate the Connected App
From Salesforce home, click on the
App Launcher(grid icon on the top left corner), then find and openApp Manager.In the App Manager, find the
CADConversionconnected app. You can use the search box to filter the results.
Step 2: Update the Custom Setting
From Salesforce home, click on the
App Launcheragain, then find and openCustom Settings.On the
Custom Settingspage, find theCAD Conversion App Setting. Click onManagenext to it.Click
Newto create a new setting, orEditif a setting already exists.In the new page, there should be fields for the objects to use and whether or not you want to enable the document trigger. A default of * is in the object list, which means any document uploaded to any object type will be tested and converted if it is a CAD file. If you want to limit this to a certain set of objects, remove the * entry and list each object you want to observe on a separate line, this will be the technical or API name of the object, e.g. Product2 vs Product etc.
Click
Save.Apply Integration User to the app
Assign the Integration User to the Connected App
In Salesforce, click on
Setup.In the Quick Find box, type
App Managerand selectApp ManagerunderPlatform Tools -> Apps.Find the
CADConversionconnected app. Click on the dropdown arrow at the end of the row and selectManage.Scroll down to the
Profilessection. ClickManage Profiles.In the new page, find the profile of the Integration User you created. Check the box next to it, and then click
Save.
Setup Client Credentials Flow Run As Integration User
In Salesforce, the "Run As" user for Client Credentials Flow is typically determined by the user who created the connected app. So you may not directly assign the Integration User as the "Run As" user for Client Credentials Flow in Salesforce UI. You have to log in as the Integration User to create or update the connected app to ensure that this user is the "Run As" user for Client Credentials Flow.
To ensure that you have everything set up correctly, you might need to review the
OAuth policiesfor your connected app and ensure thatPermitted Usersis set toAdmin approved users are pre-authorizedand that the integration user's profile is in the list ofProfileswhich are authorized to use the app.Remember to adjust the permissions and settings to fit the security model for your specific situation. Always be careful when working with integration users and OAuth, as incorrect configurations can create security vulnerabilities.
Last updated