Faster Way to update custom fields

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Faster Way to update custom fields

Postby SBarnes » Fri Mar 14, 2025 12:51 pm

In an integration I have been working on it is necessary to update a custom field on an inventory item and in the intial load to the other platform this involves over 9,000 items

Whilst I can use something like the below, to see if the value is set already, is there away to avoid having having to load the business object to save the value to a custom field except for resorting to a raw SQL statement?

Code: Select all
var custValue = JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValueCollection.ReadCustomFieldValue(manager, "Inventory Maintenance", item.TSAInventoryID, "ExternalID");
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1712
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 192

Re: Faster Way to update custom fields

Postby Mike.Sheen » Fri Jul 24, 2026 2:44 pm

SBarnes wrote:is there away to avoid having having to load the business object to save the value to a custom field except for resorting to a raw SQL statement?


No.

But you could add an extension method yourself to do something similar to what the ReadCustomFieldValue method does, but for writing.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2625
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 824

Re: Faster Way to update custom fields

Postby SBarnes » Wed Jul 29, 2026 4:41 pm

Would there need to be anything to be aware of like last updated/modified dates on the main entities or do they not get set by custom fields?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1712
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 192


Return to Technical and or Programming

Who is online

Users browsing this forum: SBarnes and 92 guests