• Neeru Nagpal 10
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Requirement Details:

I have one object say named A which have two diffrent child object say attachment & data. 
  1. a record is created in object A.
  2. Assignment records are created off the related record as CHILDREN of the A
  3. Each Assignment record has a Resource lookup, which holds a Contact record
  4. There may be up to 10 Assignment records created
  5. At a later point, a Data (third object) Record is created off the related record as a CHILD of the A
Requirement is when a nea record of Data is created, there are 10 fields for Resources. we have to copy that fields from related assignments and paste that to the fields in data record.

Please help me here to code this requirement and how we can iterate both the lists in final loop.

Thanks
Hi Friends,

iam trying to complete the 'Process Automation Specialist Superbadge- Challenge2:  getting the following error:

Challenge Not yet complete... here's what's wrong: 
A validation rule did not prevent a new Account from being saved when Billing Country is blank and Billing State has three characters.

here are my Validation Rule code details
---------------
OR(
    AND(
         LEN(BillingState)>2,
         CONTAINS("AL:AK:AZ:AR:CA:CO:CT:DE:DC:FL:GA:HI:ID:" &
                  "IL:IN:IA:KS:KY:LA:ME:MD:MA:MI:MN:MS:MO:MT:NE:NV:NH:" &
                  "NJ:NM:NY:NC:ND:OH:OK:OR:PA:RI:SC:SD:TN:TX:UT:VT:VA:" &
                  "WA:WV:WI:WY:PR",BillingState)
      ),
      NOT(OR
       (  BillingCountry="USA",
         BillingCountry="US",
         BillingCountry="United States",
         ISBLANK(BillingCountry)
      ))
    )
-------------------------
ShippingAddressValidation

OR(
   AND (
         LEN(ShippingState)>2,
         NOT (
         CONTAINS("AL:AK:AZ:AR:CA:CO:CT:DE:DC:FL:GA:HI:ID:" &
                  "IL:IN:IA:KS:KY:LA:ME:MD:MA:MI:MN:MS:MO:MT:NE:NV:NH:" &
                  "NJ:NM:NY:NC:ND:OH:OK:OR:PA:RI:SC:SD:TN:TX:UT:VT:VA:" &
                  "WA:WV:WI:WY:PR", ShippingState))),
    NOT(OR(
        ShippingCountry="US",
        ShippingCountry="USA",
        ShippingCountry="United States",
        ISBLANK(ShippingCountry)
        )
      )
 )
-------------------
 
Requirement Details:

I have one object say named A which have two diffrent child object say attachment & data. 
  1. a record is created in object A.
  2. Assignment records are created off the related record as CHILDREN of the A
  3. Each Assignment record has a Resource lookup, which holds a Contact record
  4. There may be up to 10 Assignment records created
  5. At a later point, a Data (third object) Record is created off the related record as a CHILD of the A
Requirement is when a nea record of Data is created, there are 10 fields for Resources. we have to copy that fields from related assignments and paste that to the fields in data record.

Please help me here to code this requirement and how we can iterate both the lists in final loop.

Thanks