Howto Clone Connection Via(API) - VisualCron - Forum

Community forum

AHTECH
2020-05-12T09:28:54Z
How can we use a current connections definition for further copy and customization via api?
Our team is working to onboard a list of partner transmissions to VC.
I setup a templated Connection that is picked up via the api for cloning and further customization prior to save.
Example:
ConnectionClass newConnection = cTemplate.CloneType();
newConnection.Group = conGroup;
newConnection.Name = conName;
s.Connections.Add(newConnection);
When I attempt to save the newConnection via the api above. It overwrites the cTemplate GUID rather than creating connection. I want to receive a new ID without modifying the template connection itself.
Our Connection(s) in question are all SFTP based.
Similar Topics
Users browsing this topic
Scroll to Top