Skip to main content
Jul 29, 2019 8:15 AM UTC
Solved

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.

 

Jul 29, 2019 10:09 AM UTC

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

2 replies

Jul 29, 2019 10:09 AM UTC

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

ysbAuthor
Jul 30, 2019 7:58 AM UTC

Thank you @Constantine , it worked !!