Currently using the patch command to copy a selected records values. This works great for text columns, but comes up blank for Fields that are Lookups. IE I have a field with a Customer Name or Project Name and this patch does not copy the data:
Solved! Go to Solution.
@CallenAET In order to patch a LookUp column you need to provide a record for this field. So you Patch Would look like this
Patch('Hazards', Defaults('Hazards'),
{'Customer Name': {
Id: ,
Value: ""
},
Project:{
Id: ,
Value: ""
}
});
So you need to have the Id and the Value of the LookUp Lists item.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
@CallenAET In order to patch a LookUp column you need to provide a record for this field. So you Patch Would look like this
Patch('Hazards', Defaults('Hazards'),
{'Customer Name': {
Id: ,
Value: ""
},
Project:{
Id: ,
Value: ""
}
});
So you need to have the Id and the Value of the LookUp Lists item.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Thank you!
Can this also be used in conjunction with the navigate feature? I am trying to navigate to a new form with a lookup field defaulted.