web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Mobile app Lookup filter for developers

(0) ShareShare
ReportReport
Posted on by 15

Hello.

I am creating a mobile action (insert sales lines). I have two fields  (site and warehouse), the two of them are lookup fields , i added a lookups for these fields succefully  but it's shows me the all list of warehouses . What i try to do,  is to filter on warehouse lookup list based on Site value .

I have to do this with javascript and add it as a logic in my Mobile workspace. Unfortunately these is not a lot of documentation  to explain this framework , if someone have some documentation or a solution i will appreciate your help. 

pastedimage1601294473434v1.png

Thank you , 

Best Regards,

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,924 Super User 2025 Season 2 on at

    Hi abd.sallem.bernous,

    There are some out of the box mobile workspaces. You can export these and re-import with another name. Then you are able to reverse engineer how Microsoft solved certain scenarios themselves.

  • nspiteri Profile Picture
    545 on at

    Hi,

    Im facing a similar issue.  I need a lookup that filters based on the data in the page that called the action.

    I looked at the metadataservice.configurelookup but the documentation on datafilter lookupmetadata is empty.

    Did you manage to make any progress from your side?

  • abd.sallem.bernous Profile Picture
    15 on at

    Hello Norbert Spiteri  , 

    I tried to search in out of the box mobile workspaces as André Arnaud de Calavon told me (thank you by the way), unfortunately i didn't found any scenarios with dynamic lookup . I don't have solution for the moment i let you know if i will find a solution.

    thanks you, 

    Best regards,

  • nspiteri Profile Picture
    545 on at

    Thanks for the update.

    I'm running a search on the Scripts folder in the packageslocaldirectory for places where configurelookup is used.

    I found an interesting one which could help us and it is in the CostAccounting.js.  Here is a summary of the important lines:

           var workspacePage = metadataService.findPage(pageNames.workspaceConfiguration);

           var gridControl = metadataService.findControl(workspacePage, 'Grid');

           var isPublishedControl = metadataService.findControl(workspacePage, 'CostControlWorkspaceConfiguration_IsPublished');

           var craftedFilter = gridControl.Id + '.' + isPublishedControl.Id + ':Is:1';

           metadataService.configureLookup('Select-configuration-1', 'WorkspaceConfigurationId', { filterContext: craftedFilter });

  • abd.sallem.bernous Profile Picture
    15 on at

    Hello Norbert Spiteri,

    can you tell me please if it did work for you :) ? 

    thank you 

  • nspiteri Profile Picture
    545 on at

    I didnt have time and urgency to look into it further.  I only found that example but I was wondering how I could make it look at the caller form's data.

    I am also wondering what is the future of mobile workspaces and whether its even worth investing on given PowerApps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 291 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans