How to use webuser mail adresses from GAS
Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
4 posts
Page 1 of 1
Hi,
I have to solve a tricky problem, but i think it is not altogether a rarity..
We have some webuser organized in webusergroups in GAS.
With a GAD projekt we want to send a mail to this user (webgoup by webgroup). The send mail task should use a dynamic var for the 'to' field. If the webuser admin change the GAS webuser as member of webuser group the script should still work for all new and updated users too.
Now I have develop a 'dirty' solution. Because we use the embbeded derby db,
- we copy the derby files with OS task
- then we have access to the user tables from GAS within a GAD database ressource
- then we can pick up the wished mailadresses with a query into a rowset
- with a 'ForEachLoop' and the rowset data we can add the mailadresses to a var for 'Sendmail'
My question is. see you a more elegantly way to do so? Or it is better to use a external db for the config data of GoAnywhere?
with regards
Joerg
I have to solve a tricky problem, but i think it is not altogether a rarity..
We have some webuser organized in webusergroups in GAS.
With a GAD projekt we want to send a mail to this user (webgoup by webgroup). The send mail task should use a dynamic var for the 'to' field. If the webuser admin change the GAS webuser as member of webuser group the script should still work for all new and updated users too.
Now I have develop a 'dirty' solution. Because we use the embbeded derby db,
- we copy the derby files with OS task
- then we have access to the user tables from GAS within a GAD database ressource
- then we can pick up the wished mailadresses with a query into a rowset
- with a 'ForEachLoop' and the rowset data we can add the mailadresses to a var for 'Sendmail'
My question is. see you a more elegantly way to do so? Or it is better to use a external db for the config data of GoAnywhere?
with regards
Joerg
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
Joerg,
You can't make connections to the Derby DB from GAD while GAS is running or active.
Your best solution here is to switch DB from Derby to External (Oracle, MSSQL, MySQL, DB2, etc) then you can connect and generate the Rowset as needed.
Otherwise, you would have to restore the latest backup (from Midnight) of the GAS Derby Database into another folder outside of GAS (as a working copy), then connect to that Derby DB (which would be inactive) and process based on the "latest" version available. When finished, you could delete that Copy of the DB.
You can't make connections to the Derby DB from GAD while GAS is running or active.
Your best solution here is to switch DB from Derby to External (Oracle, MSSQL, MySQL, DB2, etc) then you can connect and generate the Rowset as needed.
Otherwise, you would have to restore the latest backup (from Midnight) of the GAS Derby Database into another folder outside of GAS (as a working copy), then connect to that Derby DB (which would be inactive) and process based on the "latest" version available. When finished, you could delete that Copy of the DB.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
4 posts
Page 1 of 1