Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+2
person also asked this
people also asked this
Replies
16 replies
Answers
2 answers
Subscribers
10 subscribers
Views
12593 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
expression to get the environmental URL
garethm
over 7 years ago
Hiya all,
Is there an expression that can be used to the the base URL for the environment - the xx.yy.com/suite part?
TIA,
Gareth
OriginalPostID-259636
Discussion posts and replies are publicly visible
Top Replies
Ram
over 7 years ago
+1
Certified Lead Developer
Hi Gareth, rule!APN_getSiteUrl() might solve your problem. Hope this helps
Puspendu Pal
over 7 years ago
+1
If you dont want to use the deprecated method, you may try to get the base URL(xx.yy.com) using urlforrecord as follows: with( local!anyURL: urlforrecord( recordType: ri!recordType, identifier: ri!recordIdentifier…
Navin Reddy
over 2 years ago
+1
suggested
Certified Senior Developer
regexfirstmatch("https://[a-z]+\.[a-z]+\.[a-z]+",a!urlfortask(0))
Parents
0
Ram
Certified Lead Developer
over 7 years ago
Hi Gareth,
rule!APN_getSiteUrl() might solve your problem. Hope this helps
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Satty
over 6 years ago
in reply to
Ram
Thanks for that, but it is returning url till suite only, if i need entire UrL along with sub pages and parameter like;
www.appian123.ca/.../supplier-contact-registration
then, if anyone has any idea, do suggest
thanks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
josep
over 6 years ago
in reply to
Satty
I would suggest to make a mix between a constant and this rule(concatenating rule!rule() & cons!APN_SITE_LINK), If you are thinking about sites that will absolutely work, even for task creating the link will be enough.
In case you need records there is an appian function to get them.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ashish.deshmukh
A Score Level 1
over 6 years ago
in reply to
Satty
If you are working on 17.x version, you can make use of Customization settings provided by Appian. Here you can mark the constants as environment specific constants and maintain those using Import Customization file. Refer below link for more details,
docs.appian.com/.../Application_Deployment_Guidelines.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Reply
0
ashish.deshmukh
A Score Level 1
over 6 years ago
in reply to
Satty
If you are working on 17.x version, you can make use of Customization settings provided by Appian. Here you can mark the constants as environment specific constants and maintain those using Import Customization file. Refer below link for more details,
docs.appian.com/.../Application_Deployment_Guidelines.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Children
No Data