Import persons into custom actor: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 August 2024

  • curprev 12:4512:45, 6 August 2024Smtxwiki talk contribs 1,305 bytes +1,305 Created page with "The script below was written to import people from a CSV file as actor in a service, for which only the id was available. The actor field was a custom multi person field. var file=#1#; //The CSV file comes here. Structure: header on top, per line: serviceid, servicename, actoremail var fileLines=file.split('\r\n'); var log=[]; var allServices = JSON.parse(ServiceCatalogInterface.getAllServicesSummary()); for (var i=1; i< fileLines.length; i++) { var newActor=fil..."