sfmcsdk / com.salesforce.marketingcloud.sfmcsdk.components.identity / Identity / setProfileId

setProfileId

@JvmOverloads fun setProfileId(id: String, vararg modules: ModuleIdentifier = ModuleIdentifier.values()): Unit

Method to set the Profile Id to the modules identified by ModuleIdentifier If modules are not specified , it defaults to all modules via ModuleIdentifier

Parameters

id - New Profile Id to be set

modules -

List of modules ModuleIdentifier on which the new Profile Id need to be set

Note: This only sets new Profile Id to ModuleIdentity initialised via Identity.setModuleIdentity

fun setProfileId(ids: Map<ModuleIdentifier, String>): Unit

Method to set the Profile Id for each module identified by ModuleIdentifier

Parameters

ids -

Map of ModuleIdentifier to String for setting new Profile Id to the ModuleIdentifier specified

Note: This only sets new Profile Id to ModuleIdentity initialised via Identity.setModuleIdentity