You need to sign in to do that
Don't have an account?
mat_tone_84
fieldstonull multiple fields vbnet
Hi,
in vb.net i'm able to null a list of fields that i knows, but i'm looking for the way to repeat for each field of an object, for example, "opportunity" and check if the field is null. After that I can update my object.
Anyone can help me?
now i do this and work properly:
if I use "describeSObject" I can get the property of the field but not the value for check if it is null...
I think to do something like this:
in vb.net i'm able to null a list of fields that i knows, but i'm looking for the way to repeat for each field of an object, for example, "opportunity" and check if the field is null. After that I can update my object.
Anyone can help me?
now i do this and work properly:
anull(0) = "custom_field_aasdfa__c" anull(1) = "custom_field_basdfasb__c" anull(2) = "custom_field_csdfac__c" opportunityx.fieldstonull = anull arrayopportunity(0) = opportunityx saveresultx = client.update(arrayopportunity)the problem is that i don't know which are the null field.
if I use "describeSObject" I can get the property of the field but not the value for check if it is null...
I think to do something like this:
for i = 0 to 500 'max number of the field into the opportunity if opportunityx.fieldname = "" then anull(z) = fieldname <--- where i find it ?? end if next i
All Answers
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008qYdIAI
maybe i have to do something like this: