AnsweredAssumed Answered

get_entry_list > link_name_to_fields_array  parameter issue in  C# or VB

Question asked by Wasim Fadloun on Aug 22, 2014
Latest reply on Aug 22, 2014 by Wasim Fadloun
Dears ,

using C# or VB ( Both are OK for me)
I am trying to get opportunities list along with related account information (name of the account).
as mentioned in the developer help, I can use  link_name_to_fields_array  parameter to achieve this but don't know how pass this parameter with the appropriate info.
here is what I am doing (VB):

        Dim link_fields(0) As link_name_to_fields_array       
        link_fields(0).name = "Accounts"
        link_fields(0).value(0) = "name"

Whenever I am trying to set the name  for the declared variable I am getting the following error
NullReferenceException "Object reference not set to an instance of an object."

all the samples available on the net are in PHP where the parameter set directly to multidimensional array, don't know how to do it in VS.

can you please help me with this.