Solved
Forum Discussion
JackLacava
2 years agoCommunity Manager
Off the top of my head:
Function GetAccountTypeByName(ByRef accTypeName as String)
try:
return AccountType.GetItem(accTypeName)
catch ex as Exception:
throw ErrorHandler.LogWrite(si, new XFException(si, ex))
end try
end function
That gives you back an AccountType object, which is a bit more flexible. Then in your main code you can use it like this:
AccProperties.AccountType.SetStoredValue( GetAccountTypeByName("Flow").Id )
Keyser_Soze
2 years agoContributor
Ingenious as usual ! Thanks
Related Content
- 4 years ago
- 12 months ago