| 
									
										
										
										
											2024-06-05 10:19:46 +00:00
										 |  |  | --- | 
					
						
							|  |  |  | sidebar_position: 6 | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Get message link
 | 
					
						
							|  |  |  |  Gets a permanent URL to the channel message | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *Function GetMessageLink(Val Token, Val Channel, Val Timestamp) Export* | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  | Parameter | CLI option | Type | Destination | | 
					
						
							|  |  |  |  |-|-|-|-| | 
					
						
							|  |  |  |  | Token | --token | String | Bot token | | 
					
						
							|  |  |  |  | Channel | --channel | String | Channel ID | | 
					
						
							|  |  |  |  | Timestamp | --stamp | String | Timestamp or message ID | | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   | 
					
						
							| 
									
										
										
										
											2024-06-06 15:33:52 +03:00
										 |  |  |  Returns: Map Of KeyAndValue - Serialized JSON response from Slack | 
					
						
							| 
									
										
										
										
											2024-06-05 10:19:46 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ```bsl title="Code example" | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  Channel = "C070VPMKN8J"; | 
					
						
							|  |  |  |  Timestamp = "1714146538.221929"; | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  Response = OPI_Slack.GetMessageLink(Token, Channel, Timestamp); //Map | 
					
						
							|  |  |  |  Response = OPI_Tools.JSONString(Response); //JSON string | 
					
						
							|  |  |  |   | 
					
						
							| 
									
										
										
										
											2024-06-05 13:35:05 +03:00
										 |  |  |   | 
					
						
							| 
									
										
										
										
											2024-06-05 10:19:46 +00:00
										 |  |  | 	 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```sh title="CLI command example" | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  oint slack GetMessageLink --token %token% --channel "C070VPMKN8J" --stamp "1714146538.221929" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```json title="Result" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |  "ok": true, | 
					
						
							|  |  |  |  "permalink": "https://openintegrationsgroup.slack.com/archives/C06UFNUTKUL/p1714146538221929", | 
					
						
							|  |  |  |  "channel": "C06UFNUTKUL" | 
					
						
							|  |  |  |  } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` |