SourceLink
✖
SourceLink
is an option for CloudObject and related cloud functions that specifies the source of the content given.
Details

- Possible settings include:
-
CloudObject[…] take the specified cloud object as the source Automatic set the source from the current value of $SourceLink None never give source - The target of SourceLink for a particular cloud object is typically a notebook document that serves as the source for the content in the cloud object.
- With its default setting SourceLink->Automatic, CloudDeploy takes the source link for the deployed cloud object to be the cloud object corresponding to the current notebook, if this exists.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Deploy an object from a cloud notebook, automatically generating a link back to itself:
The deployed object view has a Source button in the upper right:
Deploy with a cloud notebook given as the source:

https://wolfram.com/xid/0tzkr07e-binsnt


https://wolfram.com/xid/0tzkr07e-f98bpo


https://wolfram.com/xid/0tzkr07e-b5qx9h

Confirm that there is no source link:

https://wolfram.com/xid/0tzkr07e-knj7jj

Possible Issues (2)Common pitfalls and unexpected behavior
Deploy some sample source code to a private object:

https://wolfram.com/xid/0tzkr07e-2hy17c

Publish a simple message to the world:

https://wolfram.com/xid/0tzkr07e-qaksq7

Associate the message with its source link:

https://wolfram.com/xid/0tzkr07e-27jezo

The Source button is not present for viewers:
In the case of a named source notebook, care must be taken when changing the name of the source notebook.
Associate a the source notebook to a named public object:

https://wolfram.com/xid/0tzkr07e-ehet2z


https://wolfram.com/xid/0tzkr07e-k7r6ru

Associate the notebook with its source notebook:

https://wolfram.com/xid/0tzkr07e-rs8yv2

Rename the source notebook in the cloud application environment:
The source link points to the old location of the object:

https://wolfram.com/xid/0tzkr07e-5xs0ql

As a result, CloudGet will no longer work:

https://wolfram.com/xid/0tzkr07e-e77ll6


Wolfram Research (2016), SourceLink, Wolfram Language function, https://reference.wolfram.com/language/ref/SourceLink.html.
Text
Wolfram Research (2016), SourceLink, Wolfram Language function, https://reference.wolfram.com/language/ref/SourceLink.html.
Wolfram Research (2016), SourceLink, Wolfram Language function, https://reference.wolfram.com/language/ref/SourceLink.html.
CMS
Wolfram Language. 2016. "SourceLink." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SourceLink.html.
Wolfram Language. 2016. "SourceLink." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SourceLink.html.
APA
Wolfram Language. (2016). SourceLink. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SourceLink.html
Wolfram Language. (2016). SourceLink. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SourceLink.html
BibTeX
@misc{reference.wolfram_2025_sourcelink, author="Wolfram Research", title="{SourceLink}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/SourceLink.html}", note=[Accessed: 28-February-2025
]}
BibLaTeX
@online{reference.wolfram_2025_sourcelink, organization={Wolfram Research}, title={SourceLink}, year={2016}, url={https://reference.wolfram.com/language/ref/SourceLink.html}, note=[Accessed: 28-February-2025
]}