Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce MCE-Dev-201 Exam - Topic 4 Question 12 Discussion

A developer wants to retrieve all recordsin the OrderDetails data extension which are associated with a particular customer.Which two AMPscript functions would return a suitable rowset?Choose 2 answers
A) LookupRows and B) LookupOrderedRows
C) Row
D) Lookup

Salesforce MCE-Dev-201 Exam - Topic 4 Question 12 Discussion

Actual exam question for Salesforce's MCE-Dev-201 exam
Question #: 12
Topic #: 4
[All MCE-Dev-201 Questions]

A developer wants to retrieve all recordsin the OrderDetails data extension which are associated with a particular customer.

Which two AMPscript functions would return a suitable rowset?

Choose 2 answers

Show Suggested Answer Hide Answer
Suggested Answer: A, B

To retrieve multiple records associated with a particular customer from the OrderDetails data extension, the LookupRows and LookupOrderedRows functions are suitable. These functions return a rowset containing the records that match the specified criteria.

LookupRows: Retrieves a rowset of records based on specified criteria.

Example:

ampscript

Copy code

SET @rows = LookupRows('OrderDetails', 'CustomerID', @customerID)

LookupOrderedRows: Retrieves a rowset of records based on specified criteria and allows for sorting.

Example:

SET @rows = LookupOrderedRows('OrderDetails', 0, 'OrderDate DESC', 'CustomerID', @customerID)

: Salesforce AMPscript LookupRows


Contribute your Thoughts:

0/2000 characters
Fausto
4 days ago
A) LookupRows and B) LookupOrderedRows are the right choices.
upvoted 0 times
...
Melissa
9 days ago
I thought Row was more for single records, so I’m leaning towards A and B for this one.
upvoted 0 times
...
Cory
14 days ago
I feel like LookupOrderedRows might be useful here, but I can't recall if it specifically applies to OrderDetails.
upvoted 0 times
...
Adolph
19 days ago
I'm not entirely sure, but I remember practicing with Lookup and LookupRows in a similar question.
upvoted 0 times
...
Caitlin
24 days ago
I think LookupRows and LookupOrderedRows are the right functions since they deal with retrieving multiple rows.
upvoted 0 times
...

Save Cancel