Creating credentials - multiple choice

When setting up credentials for an app (business central) it requires tenant ID, user, pw for basic auth.

With those I can call for a list of companies under that tenant.

What i would like to do is on the initial setup you enter the tenant, user, pw. then the app calls for the list of companies and displays those so you can select a single company which would store the associated company ID with the rest of the credentials for use on future calls.

Is there a prompt that can display the options and allow one to be selected?

Yes, the Dialog Window Data Input Form module can take an input XML data stream for the list of items, present a dropdown list, and emit the selected one.

See the Tumblr app assembly db62ddb35041489681790413c15ed760, which has to let the user pick one of their blogs if more than one blog is returned from the API. The dropdown list is done in subassembly 25e45fb0813c4bdb86a9ec1cb6f02225

exactly what I was looking for.

Thanks

follow up.

My data is set up like so…

				<e>
				<businessProfileId/>
				<displayName><![CDATA[06/25 Test Company]]></displayName>
				<id><![CDATA[8135d43b-8647-4c79-a4c4-21b1fe8a8add]]></id>
				<name><![CDATA[06/25 Test Company]]></name>
				<systemVersion><![CDATA[36441]]></systemVersion>
			</e>
			<e>
				<businessProfileId/>
				<displayName><![CDATA[06/27 Test Company]]></displayName>
				<id><![CDATA[0ec246f5-541e-4104-9b73-84a6b3d56551]]></id>
				<name><![CDATA[06/27 Test Company]]></name>
				<systemVersion><![CDATA[36441]]></systemVersion>
			</e>
			<e>
				<businessProfileId/>
				<displayName><![CDATA[8/12 Test Company]]></displayName>
				<id><![CDATA[f19f275d-c83b-425a-bfaa-7e5c6867e518]]></id>
				<name><![CDATA[8/12 Test Company]]></name>
				<systemVersion><![CDATA[36441]]></systemVersion>
			</e>
			<e>
				<businessProfileId/>
				<displayName><![CDATA[CRONUS USA, Inc.]]></displayName>
				<id><![CDATA[c79fb153-0632-4e09-bad7-ccb78bd13dac]]></id>
				<name><![CDATA[CRONUS USA, Inc.]]></name>
				<systemVersion><![CDATA[36441]]></systemVersion>
			</e>

the name is what i want to display but once that is selected I want to pass on the ID. is there a way to setup the module to spit out the ID tied to the name?

No, you would need to take the selected name and match it in the input data row to extract the id.