Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script to export to excel records for each sales rep?

Featured Replies

I could use some assistance with a script that would export the records to an excel file for each sales rep in my attached sample file.

 

My sample file has 3 sreps and I'm including 3 excel worksheets which contain the records for each rep which I manually created.

 

I'm sure it will involve a loop within the script and I always struggle with that.

 

Any assistance is greatly appreciated whether that be updating my sample file or pointing me to a spot on this forum where this issue may have been posted before.

 

Thanks

T.J.

SrepLoopScript.zip

Not sure about FM12, but in FM11 I'd be brute force.

 

Find data for Rep #1

Export Records.  You get a screen asking you to "Specify Output File"

Respond:  file:REP#1.xlsx

 

Then repeat steps for Rep #2

 

Then repeat steps for Rep #3

 

Not elegant, but effective.

 

Hope that helps.

 

 

post-58667-0-27627000-1358200849_thumb.p

  • Author

hfinger,

Thanks for taking a look.

While my sample file has only 3 sales reps I actually need to do this for 50 sales reps so if I could automate it with a script that would be the best option for me.

TJ

  • Author

I worked with it and got the script to do pretty much what I wanted but it deletes the records after exporting them.

SimpleLoopScript.zip

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.