Deluge Script for adding tag
Trying to create a custom function where a tag is added to a record - but for the life of me, I cannot figure out how. Help please!
Moderation Update:
Adding the help doc and sample to add Tags to records via deluge here for everyone's benefit.
tag1 = Map();
tag1.put("name","Tag7");
tags_list = List();
tags_list.add(tag1);
param = Map();
param.put("tags",tags_list);
recordIDs = List();
recordIDs.add("53xx");
param.put("ids",recordIDs);
info param;
res = invokeurl
[
type :POST
parameters:param.toString()
connection:"connection"
];
info res;
return "";