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

Posted by Ronnie on Jun 01, 2026 at 11:12 AM

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

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


Get Premium MCE-Dev-201 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
19 comments · newest first
IR
Irene 23 days ago
Good point! I feel more confident now.
PA
Patrick 28 days ago
B helps with ordering too, which is useful.
LI
Ling 1 month ago
A is straightforward for this scenario.
IR
Irene 1 month ago
True, I see that now.
PA
Patrick 1 month ago
D is for single value, not a rowset.
IR
Irene 2 months ago
I was torn between A and D.
LI
Ling 2 months ago
Yes, exactly! Row only gets one.
PA
Patrick 2 months ago
They both retrieve multiple rows, right?
LI
Ling 2 months ago
Agreed! LookupRows and LookupOrderedRows make sense.
PA
Patrick 2 months ago
I think A and B are the best choices.
HI
Hildred 2 months ago
Nope, LookupRows can definitely return multiple rows!
AU
Audria 3 months ago
I thought LookupRows was just for single records, not rowsets?
JO
Jonelle 3 months ago
Wait, isn't D) Lookup also a valid option?
PA
Patria 3 months ago
Totally agree, those are the functions you need!
FA
Fausto 3 months ago
A) LookupRows and B) LookupOrderedRows are the right choices.
ME
Melissa 3 months ago
I thought Row was more for single records, so I’m leaning towards A and B for this one.
CO
Cory 4 months ago
I feel like LookupOrderedRows might be useful here, but I can't recall if it specifically applies to OrderDetails.
AD
Adolph 4 months ago
I'm not entirely sure, but I remember practicing with Lookup and LookupRows in a similar question.
CA
Caitlin 4 months ago
I think LookupRows and LookupOrderedRows are the right functions since they deal with retrieving multiple rows.
0/2000 characters

Save Cancel