cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Export Appkey programmatically

ysb
6-Contributor
6-Contributor

Export Appkey programmatically

Hi Team,

 

Is it possible  export an appkey (or list of appkeys ) programmatically?

I would like to select all the appkeys by Tag and export them, but I didn't find any information

about how to do that.

If possible, how can I do it ?

 

Thanks in advance.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello,

 

Try this:

Resources["SourceControlFunctions"].ExportSourceControlledEntities(
    repositoryName: 'SystemRepository',
    path: 'appkey-export',
    tags: 'Applications:myTag'
});

 

You'll find your AppKeys on the server filesystem: /ThingworxStorage/repository/SystemRepository/appkey-export/ApplicationKeys

 

/ Constantine

View solution in original post

2 REPLIES 2

Hello,

 

Try this:

Resources["SourceControlFunctions"].ExportSourceControlledEntities(
    repositoryName: 'SystemRepository',
    path: 'appkey-export',
    tags: 'Applications:myTag'
});

 

You'll find your AppKeys on the server filesystem: /ThingworxStorage/repository/SystemRepository/appkey-export/ApplicationKeys

 

/ Constantine

ysb
6-Contributor
6-Contributor
(To:Constantine)

Thank you @Constantine , it worked !!

Top Tags