Skip to main content
1-Visitor
July 29, 2019
Solved

Export Appkey programmatically

  • July 29, 2019
  • 1 reply
  • 989 views

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.

 

Best answer by Constantine

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

1 reply

18-Opal
July 29, 2019

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

ysb1-VisitorAuthor
1-Visitor
July 30, 2019

Thank you @Constantine , it worked !!