Home

Change configuration settings for the connector without rebuilding

%3CLINGO-SUB%20id%3D%22lingo-sub-915093%22%20slang%3D%22en-US%22%3EChange%20configuration%20settings%20for%20the%20connector%20without%20rebuilding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-915093%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22js-vote-count%20grid--cell%20fc-black-500%20fs-title%20grid%20fd-column%20ai-center%20c-pointer%22%20tabindex%3D%220%22%20title%3D%22View%20upvote%20and%20downvote%20totals%22%20data-value%3D%220%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22post-text%22%3E%0A%3CP%3EI%20would%20like%20to%20know%20is%20there%20any%20way%20where%20in%20I%20can%20supply%20configuration%20settings%20for%20custom%20connector%20without%20building%20the%20app%20like%20a%3CCODE%3Eweb.config%3C%2FCODE%3E%20file%20or%20%3CCODE%3Esettings.json%3C%2FCODE%3E%20file.%20Currently%2C%20I%20am%20reading%20the%20same%20from%20resource%20file%20but%20this%20is%20not%20ideal%20solution%20as%20for%20different%20environments%20I%20have%20to%20build%20multiple%20times%20and%20deploy%20the%20same.%3C%2FP%3E%0A%3CP%3EI%20am%20trying%20something%20like%20this%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%60%60%60%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3ExmlTable%20%3D%20Xml.Tables(File.Contents(%22D%3A%5CPowerBi%5CCustomConnector%5Csettings.xml%22))%3B%0AtenantId%20%3D%20xmlTable%5BTenantId%5D%7B0%7D%3B%0AapplicationId%20%3D%20xmlTable%5BApplicationId%5D%7B0%7D%3B%0Aredirect_uri%20%3D%20xmlTable%5BRedirectUri%5D%7B0%7D%3B%0Alogout_uri%20%3D%20xmlTable%5BLogoutUri%5D%7B0%7D%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%60%60%60%3C%2FP%3E%0A%3CP%3EBut%20here%2C%20rather%20than%20absolute%20URL%2C%20I%20would%20like%20to%20give%20a%20relative%20URL.%3CBR%20%2F%3EEven%20this%20approach%20gets%20failed%20with%20below%20error%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ELogin%20failed.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDetails%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EException%20of%20type%20'Microsoft.Mashup.Engine.Interface.UnpermittedResourceAccessException'%20was%20thrown.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3BKindy%2C%20let%20me%20know%20if%20I%20am%20missing%20anything%20here.%20%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3ERahul%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-915093%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPower%20BI%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
rahul sahay
MVP
 

I would like to know is there any way where in I can supply configuration settings for custom connector without building the app like a web.config file or settings.json file. Currently, I am reading the same from resource file but this is not ideal solution as for different environments I have to build multiple times and deploy the same.

I am trying something like this

 

```

xmlTable = Xml.Tables(File.Contents("D:\PowerBi\CustomConnector\settings.xml"));
tenantId = xmlTable[TenantId]{0};
applicationId = xmlTable[ApplicationId]{0};
redirect_uri = xmlTable[RedirectUri]{0};
logout_uri = xmlTable[LogoutUri]{0};

```

But here, rather than absolute URL, I would like to give a relative URL.
Even this approach gets failed with below error:

 

Login failed.

 

Details:

Exception of type 'Microsoft.Mashup.Engine.Interface.UnpermittedResourceAccessException' was thrown.

 Kindy, let me know if I am missing anything here.

 

Thanks,

Rahul

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies