CLARiNET
A Workday command-line interface (CLI) for working with files (Drive, Documents, Photos) and deploying Workday Studio integrations without Workday Studio.
Install / Use
/learn @swhitley/CLARiNETREADME
CLARiNET
<img align="right" src="https://user-images.githubusercontent.com/413552/129500187-ea5a1947-16d2-46eb-ab48-2adc6553b6d8.png" width="50" />A Workday command-line interface (CLI) for working with files (Drive, Documents, Photos) and deploying Workday Studio integrations without Workday Studio.
Windows or Mac
Supported Commands:
| -- Commands -- | | | |--------------------|--------------------------------|-----------------| | 1) CLAR_UPLOAD | 2) CLAR_DOWNLOAD | 3) DRIVE_UPLOAD | | 4) DRIVE_TRASH | 5) PHOTO_DOWNLOAD | 6) PHOTO_UPLOAD | | 7) DOCUMENT_UPLOAD | 8) CANDIDATE_ATTACHMENT_UPLOAD | |
Workday Drive Features
- Upload files in bulk to Workday Drive. Load files for different Workday user accounts.
- Send files to the Workday Drive Trash.
Documents
- Mass file upload to Worker Documents.
- Select a different document category with each run.
- Mass file upload to Candidate Attachments
Profile Pictures
- Download or upload worker profile pictures.
CLAR Backup and Versioning
- Quickly download and backup a unique version of a CLAR file.
- Add the backup feature to the Workday Studio menu.
CLAR Deployment: Why deploy CLAR files with CLARiNET?
You might be asking yourself, "Why load a CLAR file from outside of Workday Studio?"
- Distribute an integration to someone who is not a developer.
- Enable an operations role to move an integration to production without requiring development tools.
- Migrate an integration from a laptop that hasn't been configured for Studio.
- Save time when reloading integrations to Sandbox following the weekly refresh.
Installation
- Download the latest release for your operating system (Mac or Windows).
- Unzip the executable files into a new directory.
- Run
clarinet --helpto view the available options. - You may need to install the dotnet core runtime.
- Optional: Download Test.clar to try it out.
Notes:
- When uploading CLAR files, CLARiNET calls an unpublished Workday API endpoint. Functionality is not guaranteed.
- The Drive API is published and fully-supported by Workday.
- On a Mac, you will be blocked from executing CLARiNET by an "Unidentified Developer" warning. Use Ctrl-Click or right-click to open CLARiNET.
- https://www.macworld.co.uk/how-to/mac-app-unidentified-developer-3669596/
Uploading files to Workday Drive
- Domains: Ensure you have enabled
Modifyaccess onReport/TaskandIntegrationpermissions for the following domains in Workday:- Drive Administrator
- Drive Web Services
- Ensure that a directory named
inboundhas been created alongside theclarinetprogram file. The directory will be created automatically whenclarinetis executed. - Place each file in the inbound directory with the following file name format: {Workday User Account}~{File Name}<br/> Example: swhitley~MyExampleFile.txt
- Enter
clarineton a line by itself. The application will prompt for all necessary information. - The
clarinetcommand is DRIVE_UPLOAD. - Each file in the
inbounddirectory will be uploaded to the drive for the appropriate Workday user account. The file name in Workday Drive will only show the text following the tilde (~). - Once uploaded successfully, each file will be moved to the
processeddirectory.
Sending Drive files to the Trash
- Create a comma-separated value (CSV) file with the following layout:<br/> {Workday User Account (Owned By)},{File Name},{Drive Document Workday ID (WID)}<br/> Example: swhitley,MyExampleFile.txt,8a8a350990e401003bb7a37564c10000
- In the file, use the Workday account of the original file owner, or it will be changed during this operation.
- Place the file in the same folder as the
clarinetapplication. - When naming the file, it will be convenient to include the word trash.
- Enter
clarineton a line by itself. The application will prompt for all necessary information. - The
clarinetcommand is DRIVE_TRASH.
Please note that a file is not deleted when sent to the trash. Files can be individually restored from the trash if needed.
Uploading files to Worker Documents
- Ensure that a directory named
inboundhas been created alongside theclarinetprogram file. The directory will be created automatically whenclarinetis executed. - Place each file in the inbound directory with the following file name format: {Workday Employee ID}~{File Name}<br/> Example: 500117~MyExampleFile.txt
- Enter
clarineton a line by itself. The application will prompt for all necessary information. - The
clarinetcommand is DOCUMENT_UPLOAD. - Enter the document category reference id in the CLARiNET
Parametersoption. This document category will be used for all files. - Each file in the
inbounddirectory will be uploaded to worker documents for the appropriate Workday employee. The file name will only show the text following the tilde (~). - Once uploaded successfully, each file will be moved to the
processeddirectory.
Uploading files to Candidate Attachments
- Ensure that a directory named
inboundhas been created alongside theclarinetprogram file. The directory will be created automatically whenclarinetis executed. - Place each file in the inbound directory with the following file name format: {Candidate ID}~{Job Application ID}~{File Name}<br/> Example: CAND-1124~JOB_APPLICATION-11-256~Resume.pdf
- Enter
clarineton a line by itself. The application will prompt for all necessary information. - The
clarinetcommand is CANDIDATE_ATTACHMENT_UPLOAD. - Each file in the
inbounddirectory will be uploaded to candidate attachments under Resume/Cover Letter for the appropriate candidate. The file name will only show the text following the tilde (~) after the job application id. - Once uploaded successfully, each file will be moved to the
processeddirectory.
Download Profile Pictures (Employee Photos)
-
Create a CSV file with a list of employee ids (one id on each line).
-
This is the list of workers that will be used to download photos.
-
If any of the workers are contingent workers, add
Contingent_Worker_IDas the second field of the CSV.Example:
<code>500117</code>
<code>500118,Contingent_Worker_ID</code>
-
-
Place the CSV file in the directory to which the photos should be downloaded.
-
Enter
clarineton a line by itself. The application will prompt for all necessary information. -
The
clarinetcommand is PHOTO_DOWNLOAD. -
The
Pathoption should point to the path where the CSV file is located. -
The
Parameteroption should be the name of the CSV file. -
Run
clarinet --helpto view the available options. -
Run
clarinet -wto view the list of Workday environments and the associated numbers.
Uploading Profile Pictures (Employee Photos)
- Ensure that a directory named
inboundhas been created alongside theclarinetprogram file. The directory will be created automatically whenclarinetis executed. - Place each file in the inbound directory with the following file name format: {Workday Employee ID}~{File Name}<br/> Example: 500117~MyPhoto.png
- Enter
clarineton a line by itself. The application will prompt for all necessary information. - The
clarinetcommand is PHOTO_UPLOAD. - Each file in the
inbounddirectory will be uploaded for the appropriate Workday employee. The file name will only show the text following the tilde (~). - Once uploaded successfully, each file will be moved to the
processeddirectory.
Download a snapshot of a CLAR file from Workday
- Enter
clarineton a line by itself. The application will prompt for all necessary information. - The
clarinetcommand is CLAR_DOWNLOAD. - Run
clarinet --helpto view the available options. - Run
clarinet -wto view the list of Workday environments and the associated numbers. - The downloaded CLAR file name will include the Cloud Collection name and a timestamp.
- In addition to the CLAR file, the integration system configuration will be downloaded to an XML file.
Loading a CLAR file to Workday
- Enter
clarineton a line by itself. The application will prompt for all necessary information. - The
clarinetcommand is CLAR_UPLOAD. - If a single
.clarfile is found in the same directory, CLARiNET will automatically select that file for processing. - Run
clarinet --helpto view the available options. - Run
clarinet -wto view the list of Workday environments and the associated numbers.
Run CLARiNET from the command line using positional parameters:
- %1 CLARiNET Command:
CLAR_UPLOAD,CLAR_DOWNLOAD,DRIVE_UPLOAD,DRIVE_TRASH,PHOTO_DOWNLOAD,DOCUMENT_UPLOAD<br/> - %2 Path or Path and File Name<br/>
- %3 Parameters for the command. Enter the Cloud Collection name when performing a CLAR_UPLOAD or CLAR_DOWNLOAD. For other commands, defaults will be used<br/>
- %4 Workday Environment Number (run
clarinet -wto see the list of numbers)<br/> - %5 Tenant<br/>
- %6 Username<br/>
- %7 Encrypted Password (run
clarinet -eto encrypt a password) <br/>
Example: clarinet CLAR_UPLOAD "C:\example_folder\Test.clar" Test 7 mytenant myusername AQAAANCMnd8BFdERjHoAwE/Cl+...G3Q=
The entire list of parameters is not required. Prompts will appear for the parameters that are not included. These are all valid examples:
Example #1: clarinet CLAR_UPLOAD "C:\example_folder\Test.clar"
Example #2: clarinet CLAR_UPLOAD "C:\example_folder\Test.clar" Test 7 mytenant myusername
Example #3: clarinet CLAR_UPLOAD "C:\example_folder\Test.clar" Test
Sample clarinet Run
 instead of manual edit summaries.
terraform-provider-genesyscloud
Terraform Provider Genesyscloud
blogwatcher
345.9kMonitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
