• Darunphop Winiyakul 4
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi,

Could you guys help me about this?
I'm newbie for programming.
I want to add value from my List to my custom fields which have sequential number as suffix of each field by using for loop.

Similar this..
Example
            My custom field API name : A_1__c,A_2__c,A_3__c

            List<User> userList = new List<User>();
            Integer counterXX = 1;
            for(User rUser : userList){
                xxx.A_counterXX__c = rUser.Id;
                counterXX++;
            }
Can I use this logic or what it should be? Please give me some advices.

Thank you.
Hi,

Could you guys help me about this?
I'm newbie for programming.
I want to add value from my List to my custom fields which have sequential number as suffix of each field by using for loop.

Similar this..
Example
            My custom field API name : A_1__c,A_2__c,A_3__c

            List<User> userList = new List<User>();
            Integer counterXX = 1;
            for(User rUser : userList){
                xxx.A_counterXX__c = rUser.Id;
                counterXX++;
            }
Can I use this logic or what it should be? Please give me some advices.

Thank you.