How to retrieve the Cloud ID on a child account during runtime?

Document created by Rabia_Sozkesen Employee on Jun 22, 2016Last modified by chris_stevens on Jun 30, 2016
Version 3Show Document
  • View in full screen mode

As described in the reference guide, getContainerID() function of com.boomi.execution.ExecutionUtil returns the atomID for the atom on which the process is executing. Here's an article that describes how this function can be used in Groovy: How to get the atom ID within a process (using scripting)

 

getContainerID() function, returns the Cloud ID in the parent account when the process is ran on a sub account. In order to get the Cloud ID on the child account, the script must be written like below:

import com.boomi.execution.*;

String containerID = ExecutionManager.getCurrent().getAccountConfig().getEffectiveContainerIdentifier();

Attachments

    Outcomes