Get Creator Form Record ID and Subform ID's
Good Afternoon everyone.
I have a Creator form with a on success workflow. I'm trying to get the form record ID and the subform record ID(s) but they keep coming up null. There is data in the subform I use it elsewhere. Can anyone help me pull the ID's. Here is my code below. I'm trying to pull the ID's for a function. Thanks in advance!!
// Create PDF
// Retrieve Deal ID then call function.
kiosk_Subform_Data = input.Kiosk_Placement_s;
if(input.Number_of_Kiosks_requested_for_this_specific_location > 1)
{
for each subform in kiosk_Subform_Data
{
creatorRecordId = input.ID.toLong();
subformIds = {};
for each subform in kiosk_Subform_Data
{
subformIds.add(subform.ID.toLong());
}
thisapp.UploadPDFtoDeals(creatorRecordId,subformIds);
}
}
info "Creator ID" + creatorRecordId;
info "Subform IDs" + subformIds;