You need to sign in to do that
Don't have an account?
Priscila Renwick
FIELD_INTEGRITY_EXCEPTION: Name ID: id value of incorrect type
Hi,
I'm trying to create a Flow that will create a task when a user presses a button on a custom object (ultimately it will be several tasks, but got stuck in the first one). I'm getting the error below and I don't know what could be causing it. The WhatID is the custom record where the button is located and it's right, the WhoID is the record owner, which also seems to be right. In the error, I noticed it's showing the 18 digit ID, rather than 15, but don't know if that matters. Could anyone advise please?
Error element Pilot_Task_Activation_Meeting (FlowRecordCreate).
This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: Name ID: id value of incorrect type: 005b0000004dk9sAAA. For details, see API Exceptions.
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: Deployment_Pilot_Tasks_Create
Type: Autolaunched Flow
Version: 7
Status: Active
Flow Interview Details
Interview Label: Deployment Pilot Tasks Create 16/03/2018 16:18
Current User: Priscila Renwick (005b00000016Nyp)
Start time: 16/03/2018 16:18
Duration: 0 seconds
How the Interview Started
Priscila Renwick (005b00000016Nyp) started the flow interview.
Some of this flow's variables were set when the interview started.
var_DepOwner = 005b0000004dk9s
var_DepID = a42b0000000j37s
RECORD CREATE: Pilot_Task_Activation_Meeting
Create one Task record where:
Description = {!ActivationMeetingDescription} (Arrange initial meeting (generally done by the sales person, guidance here) that will include an environment discovery and the set up of initial devices. The environment discovery includes: Purchase drivers and success criteria Make up of device fleet EMM used (if any) Business critical apps defined Purchase drivers/success criteria)
RecordTypeId = 012b0000000sdVV
Status = Not Started
Subject = 'Activation meeting'
WhatId = {!var_DepID} (a42b0000000j37s)
WhoId = {!var_DepOwner} (005b0000004dk9s)
Result
Failed to create record.
Error Occurred: This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: Name ID: id value of incorrect type: 005b0000004dk9sAAA. For details, see API Exceptions.
I'm trying to create a Flow that will create a task when a user presses a button on a custom object (ultimately it will be several tasks, but got stuck in the first one). I'm getting the error below and I don't know what could be causing it. The WhatID is the custom record where the button is located and it's right, the WhoID is the record owner, which also seems to be right. In the error, I noticed it's showing the 18 digit ID, rather than 15, but don't know if that matters. Could anyone advise please?
Error element Pilot_Task_Activation_Meeting (FlowRecordCreate).
This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: Name ID: id value of incorrect type: 005b0000004dk9sAAA. For details, see API Exceptions.
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: Deployment_Pilot_Tasks_Create
Type: Autolaunched Flow
Version: 7
Status: Active
Flow Interview Details
Interview Label: Deployment Pilot Tasks Create 16/03/2018 16:18
Current User: Priscila Renwick (005b00000016Nyp)
Start time: 16/03/2018 16:18
Duration: 0 seconds
How the Interview Started
Priscila Renwick (005b00000016Nyp) started the flow interview.
Some of this flow's variables were set when the interview started.
var_DepOwner = 005b0000004dk9s
var_DepID = a42b0000000j37s
RECORD CREATE: Pilot_Task_Activation_Meeting
Create one Task record where:
Description = {!ActivationMeetingDescription} (Arrange initial meeting (generally done by the sales person, guidance here) that will include an environment discovery and the set up of initial devices. The environment discovery includes: Purchase drivers and success criteria Make up of device fleet EMM used (if any) Business critical apps defined Purchase drivers/success criteria)
RecordTypeId = 012b0000000sdVV
Status = Not Started
Subject = 'Activation meeting'
WhatId = {!var_DepID} (a42b0000000j37s)
WhoId = {!var_DepOwner} (005b0000004dk9s)
Result
Failed to create record.
Error Occurred: This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: Name ID: id value of incorrect type: 005b0000004dk9sAAA. For details, see API Exceptions.
In the flow you are setting setting the who id with the user id.
That is the place it's causing the error.You need to set this to assigned to.
Don't forget to mark your thread as 'SOLVED' with the answer that best helps you
Thanks,
Sarav
Sweet Potato Tec
All Answers
In the flow you are setting setting the who id with the user id.
That is the place it's causing the error.You need to set this to assigned to.
Don't forget to mark your thread as 'SOLVED' with the answer that best helps you
Thanks,
Sarav
Sweet Potato Tec
Hey,
I'm trying to create a FLOW that creates a new record in the EVENT object
When I select assigned to it automatically registers me WONERID
When I insert a user ID into it, it works fine
But when I enter a public log id it gives an error.
In the record itself, it is possible to select this field if you want users or logs - maybe it has something to do with it?
In any case I would be very happy for your help
Thank you
Could you please let me know the error message you received?
Thanks,
Sarav
Sweet Potato Tec
This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: Related To ID: id value of incorrect type: a033M000002ZutsQAC. You can look up ExceptionCode values in the SOAP API Developer Guide.
Flow Details
Flow API Name: createEventInCalender
Type: Autolaunched Flow
Version: 18
Status: Inactive
Org: מימוש (00D3M0000008l7W)
Flow Interview Details
Interview Label: יצירת אירוע ביומן הנפגשת ובעיר 10:11 29/12/2021
Interview GUID: 400a394b88680001e4422f4c78317e052bb8b-159b
Current User: נעמי גלינרט (0054I000005VJhJ)
Start time: 10:11 29/12/2021
Duration: 0 seconds
How the Interview Started
נעמי גלינרט (0054I000005VJhJ) started the flow interview.
API Version for Running the Flow: 53
Some of this flow's variables were set when the interview started.
Meet = AudienceReceptions__c (a0v3M000000sZtRQAU)
CREATE RECORDS: ארוע לנפגשת
Create one Event record where:
EndDateTime = {!Meet.endMeet__c} (12:45 08/12/2021)
StartDateTime = {!Meet.startMeet__c} (12:00 08/12/2021)
Subject = Meeting
WhatId = {!Meet.BranchName__r.Id} (a033M000002ZutsQAC)
Result
Failed to create record.
Error Occurred: This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: Related To ID: id value of incorrect type: a033M000002ZutsQAC. You can look up ExceptionCode values in the SOAP API Developer Guide.
Transaction Rolled Back
Because an error occurred, any records that the flow was ready to create, update, or delete weren’t committed to the database.
Salesforce Error ID: 1875731192-93311 (-238783498)
Thank you. Can you confirm if the 'Allow Activities' on the custom object 'Branch' has been enabled? Please see the screenshot below,
If not, please enable and then try to test this. Please let me know if you are facing the issue.
Thanks,
Sarav
Sweet Potato Tec
I enabled the Allow Activities
But that did not solve my problem.
Sorry
I really do not know what to do.
How do you link an event to a public calendar?
Its default is users
Sorry i cannot see the full screenshot. Are you still facing the same error ?
I think if you create an event and assigned to an user that will show it in the calendar.
Could you please explain what you are trying to achieve?
Thanks,
Sarav
In flow in creating a record I select an event object
This object has a "assigned to" field to which I want to link a public journal
The calendars are created in Public Calendars and Resources
I was able to link to an employee's log by entering a user id
The question is how do I link the event to one of the public.
thenk.
Thanks for the clarification.
You can just insert an event in the flow with the below fields,
This will show the event in the user calendar that has been assigned in point 3. Please see the screenshot below,
Event Page:
Calendar Page:
Process Builder Create Record:
Hope this is clear but please let me know if you have any questions.
Thanks,
Sarav
Sweet Potato Tec
I'm sorry but it does not help me.
I want to link to a public diary not to a user.
I mean link to a diary and not through a user
And besides, I work in lightning
Hope this helps.
Thanks,
Sarav
Sweet Potato Tec
If you use the 'Calendar ID' in the assigned field this will work.
Can you modify the flow to update the assigned to with Calendar ID rather than user ID like in the last thread screenshot please and see if it's working?
Thanks,
Sarav
Sweet Potato Tec.
Just how do I get the log ID?
https://sarav2021-dev-ed.lightning.force.com/lightning/setup/Calendars/page?address=%2F0237F000004vq7M
0237F000004vq7M is the calendar ID
Hope this helps.
Thanks,
Sarav
Sweet Potato Tec
But I need to get the ID dynamically.
Depends on which log the user chooses.
The big problem is that I can not do a lookup on the logs
Because they are not an object.
Do you have any advice for me?
Glad that it helped.
I think you can create a formula text field in the Event object which populate the ID dynamically and use the formula field in the flow.
As an example,
- If Event Subject = Meeting then use Meeting Calendar ID.
- If Event Subject = Conference then use Conference Calendar ID.
Hope this helps.Thanks,
Sarav
Sweet Potato Tec
The user of another object enters the calendar to which he wants to create an event.
After selecting OK in the "Approved" field
The FLOW starts working - its purpose is to create an event in the log that the user has selected.
So I do not understand how I can save the ID.
thenks!
CREATE RECORDS: ארוע לנפגשת
Create one Event record where:
EndDateTime = {!Meet.endMeet__c} (12:45 08/12/2021)
StartDateTime = {!Meet.startMeet__c} (12:00 08/12/2021)
Subject = Meeting
WhatId = {!Meet.BranchName__r.Id} (a033M000002ZutsQAC)
Result
Failed to create record.
Is the flow start working when you create a record in the Branch__c custom object and save it?
Thanks,
Sarav
Sweet Potato Tec
- Meeting
- Conference
and let the user select the calendar using this picklist field on Branch object and create another FF field to populate the ID.Finally use that in the flow 'Assigned to' field. But, you need to maintain the picklist, FF field & flow when any new calendar is added.
Hope I am clear this time.
Thanks,
Sarav
Sweet Potato Tec
Apparently I was not clear.
I have an object called "Audience Receipts"
This item has the "Branch" "Employee" and "OK" fields
important to emphasize:
The object branch is an object whose names overlap with the names of the public logs.
Meaning that if the user selected "Jerusalem" in the branch
I want the event to be created in a public diary "Jerusalem".
When I mark V in the "OK" field
I want the flow to create an event for me in both the employee log and the log named after the branch name.
The idea of another FF field is great
only
I did not understand how to enter the log ID, how will I know it?
Please pull the 'Branch Name' in the Audience Receipts object and depend on the Branch Name create a FF Field in the Audience Receipts.
As an example,
- If the Branch Name is Jeruselam dynamically populate the Jerusalem Calendar ID.
- If the Branch Name is United Kingdom populate the United Kingdom Calendar ID.
Finally, in the flow check if the Audience Receipts OK field is approved then create an event with the below fields,Thanks,
Sarav
Sweet Potato Tec
Excellent!
Thanks!
But again where will I get the log ID ???
Do you mean the record of the Event or the calendar ID ?
Thanks,
Sarav
When I asked you earlier how I would take the ID
You registered me to take it from the URL.
But in a dynamic way how do you get it?
Please create a formula text field in the 'Audience Receipts' object like below,
Please change the ID's with your calendar ID's. This will dynamically populate the ID and you can use this field in the flow for Assigned to field.
Thanks,
Sarav
Sweet Potato Tec
It will be lots and lots of lines !!
And what happens if they add another log that will require another line to be added to the field?
It gave me a lot
How can I ask a new question?
Please let me know your question i will be happy to help!
My question is how do I allow each team leader to see all the records that belong only to his team
All main team with the role of Tik Team Leader
And the rest of the employees are in the role of Tik Manager
So you need need write sharing rules in the object that's associated to the event record record.
My question is about other objects whether standard or custom
Not on an event object
Yes, you can set the OWD as Private on the object and then create a sharing rule to share the records based on role criteria,
As an example,
Thanks,
Sarav
Sweet Potato Tec
Just how I do it
Thanks,
Sarav
Sweet Potato Tec
I will describe a case and I would love to know how to do it
I have an object called "presence"
There is one employee (the principal) who creates records accordingly.
The owner remains the principal
There is a field called "employee name" which links the record to the employee herself.
I want every team leader to be able to see the records in the "Employee Name" field showing the name of an employee who is under it.
There is a possibility?
If you set the OWD for the presence object as Private and create the sharing rule to share the records to a role. Then only the users assigned with that role can access the records.
No users below the role can access it.
Thanks,
Sarav
Sweet Potato Tec
Did not work out for me. Sorry
In sharing settings in the presence object I changed it to be private
When I log in as a team leader's user
She can see all the records of "Tik Managers"
(Team leader is in Role over Tik manager)
why?
Thanks,
I just changed the object to private
What to write in sharing rules?
Can you sign me up?
I want every employee to see only his records!
And even that there are workers under it.
Please follow the below steps to write sharing rule,
Also please make sure the profile does not have 'View All' & 'Modify All' permission.
Thanks,
Sarav
Sweet Potato Tec
I do not want to share a team leader in the records of the employees under him
I want the team leader to see his own only
A portfolio manager will see his own
And so it is with all the employees of the company
Each one his own only !.
And I do not see any permission for employees to see everything.
Is there another way to solve the problem?
Sharing Settings
Or role?
If the sharing settings is private and there are no sharing rule then only the owner can see the record unless the profile has view all modify all permission.
If sharing settings is private and profile has view all modify all then all the records were visible to the use.
"unless the profile has view all modify all permission"
How can I check it?
When you are in the user detail page there should be field called profile, click on it and there you can look at the permission for presence object.
In the presence object is marked V only in reading
From the profile of a team leader
https://developer.salesforce.com/forums/?id=9060G000000I94QQAS
Thanks,
Sarav
setup -> users -> Permission Sets
I did not see.
The problem was that the V in "Grant Access Using Hierarchies"
Not canceled.
That’s why a delicate team leader saw all the records of the employees under him
Thanks so much for all the help
In the profile-level permissions, it is possible to indicate on each of the objects whether there is a possibility of reading or editing, deleting, etc.
And there is also an option in sharing setting to decide whether the object will be private for read only or read and edit
What is the difference between them?
When is each of them used?
https://developer.salesforce.com/forums/?id=9060G000000UUa0QAG
Thanks,
Sarav
To implement Salesforce,
What topics would you recommend to know well?
- Objects and Fields
- Profile and Permission Set
- Roles and Sharing rules.
- Workflows, Validation Rules and Flows
- Approval process.
Thanks,Sarav